#! /bin/bash

TOOLS=/root/guomi_test-2/tools

if [ $# -ne 1 ];
then
        echo "please input data dir"
        sleep 100
fi

data_dir=$1
#sm2
#ok
#python $TOOLS/sm2_key_gen.py $data_dir/sm2/ok/keyget 
#python $TOOLS/sm2_enc.py $data_dir/sm2/ok/enc enc 
#python $TOOLS/sm2_enc.py $data_dir/sm2/ok/dec dec 
#python $TOOLS/sm2_sign.py $data_dir/sm2/ok/sign sign 
#python $TOOLS/sm2_sign.py $data_dir/sm2/ok/verify verify 
#python $TOOLS/sm2_sign_pre.py $data_dir/sm2/ok/pverify verify 
#python $TOOLS/sm2_sign_pre.py $data_dir/sm2/ok/presign sign 
#python $TOOLS/sm2_exchange.py $data_dir/sm2/ok/exchange 
#speed
#python $TOOLS/sm2_speed_key_gen.py $data_dir/sm2/speed/keyget
#python $TOOLS/sm2_speed_enc.py $data_dir/sm2/speed/enc enc
#python $TOOLS/sm2_speed_enc.py $data_dir/sm2/speed/dec dec
#python $TOOLS/sm2_speed_sign.py $data_dir/sm2/speed/sign sign
#python $TOOLS/sm2_speed_sign.py $data_dir/sm2/speed/verify verify 
#sm3
#ok
#python $TOOLS/sm3.py $data_dir/sm3/ok 
#speed
#python $TOOLS/sm3_speed.py $data_dir/sm3/speed 
#sm4
#ok
#python $TOOLS/sm4.py $data_dir/sm4/ok enc 
#python $TOOLS/sm4.py $data_dir/sm4/ok dec 
#python $TOOLS/sm4_speed.py $data_dir/sm4/speed enc 
#python $TOOLS/sm4_speed.py $data_dir/sm4/speed dec 
#sm9
#ok
python $TOOLS/sm9_enc_key.py $data_dir/sm9/ok/ekey ok 
python $TOOLS/sm9_enc.py $data_dir/sm9/ok/enc enc 
python $TOOLS/sm9_enc.py $data_dir/sm9/ok/dec dec 
python $TOOLS/sm9_sign_key.py $data_dir/sm9/ok/skey ok 
python $TOOLS/sm9_sign.py $data_dir/sm9/ok/sign sign 
python $TOOLS/sm9_sign.py $data_dir/sm9/ok/verify verify 
#speed
python $TOOLS/sm9_enc_key.py $data_dir/sm9/speed/ekey speed 
python $TOOLS/sm9_speed_enc.py $data_dir/sm9/speed/enc enc 
python $TOOLS/sm9_speed_enc.py $data_dir/sm9/speed/dec dec 
python $TOOLS/sm9_sign_key.py $data_dir/sm9/speed/skey speed 
python $TOOLS/sm9_speed_sign.py $data_dir/sm9/speed/sign sign 
python $TOOLS/sm9_speed_sign.py $data_dir/sm9/speed/verify verify 


